<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>迅购网 - 个人中心</title>

    <%@ include file="../../common/taglib.jsp" %>
    <script type="text/javascript">
        function getPage(a, url) {
            $.ajax({
                url: url,
                dataType: 'html',
                success: function (document) {
                    $('#personalRightContent').html(document);
                    $('.current-li').removeClass('current-li');
                    $(a).parent().addClass('current-li');
                }
            });
        }
    </script>
</head>
<body>
    <jsp:include page="../../global/head.jsp" flush="true">
        <jsp:param name="showkj" value="0"/>
    </jsp:include>
    <input name="page" type="hidden" value="${page}">
    <div class="personal w1200">
        <div class="personal-left f-l">
            <div class="personal-l-tit">
                <h3>个人中心</h3>
            </div>
            <ul>
                <li class="per-li3">
                    <a id="orderListForBuyerPage" onclick="getPage(this,ctx+'/user/orderListForBuyerPage.do')">我的订单<span>></span></a>
                </li>
                <li class="per-li5">
                    <a id="shoppingCartPage" onclick="getPage(this,ctx+'/user/shoppingCart.do')">购物车<span>></span></a>
                </li>
                <li class="per-li6">
                    <a id="receiverPage" onclick="getPage(this,ctx+'/user/receiverPage.do')">管理收货地址<span>></span></a>
                </li>
                <li class="per-li6">
                    <a id="addReceiverPage" onclick="getPage(this,ctx+'/user/addReceiverPage.do')">添加收货地址<span>></span></a>
                </li>
                <li class="per-li7">
                    <a href="#">店铺收藏<span>></span></a>
                </li>
            </ul>
        </div>
        <div class="purchase-records f-r" id="personalRightContent" style="padding-bottom: 80px;">

        </div>
        <div style="clear:both;"></div>
    </div>
    <script type="text/javascript">
        $(function(){
            $('#'+$('[name="page"]').val()).click();
        });
    </script>
</body>
</html>